#include "TcpServer.hpp"
#include <memory>

void NetCal(Connection* conn, std::string& request)
{
    logMessage(DEBUG, "NetCal been called, get a request: %s", request.c_str());
    // 反序列化

    // 业务处理

    // 构建应答，序列化

    // 交给服务器，发送
}

int main()
{
    std::unique_ptr<TcpServer> svr(new TcpServer());
    svr->Dispather(NetCal);
    return 0;
}